package com.yix.admin.modules.security.config;

import com.yix.admin.modules.security.config.bean.JwtSecurityProperties;
import com.yix.admin.modules.security.config.bean.LoginProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/2/2 13:19
 */
@Configuration
public class ConfigBeanConfiguration {
    @Bean
    @ConfigurationProperties(prefix = "login", ignoreUnknownFields = true)
    public LoginProperties loginProperties() {
        return new LoginProperties();
    }

    @Bean
    @ConfigurationProperties(prefix = "jwt", ignoreUnknownFields = true)
    public JwtSecurityProperties securityProperties() {
        return new JwtSecurityProperties();
    }
}
